_unit = _this select 0;
_ids = _this select 1;

{
(position _unit nearestobject _x) setdamage 1;
(position _unit nearestobject _x) hideObject true; 
hint str(_x);
} forEach _ids;


//nil=[this,[24522]] execVM "destroyobject.sqf";